package file;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-04-10
 * Time: 21:27
 */
public class Demo7 {
    public static void main(String[] args) {
        File f=new File("./aaa");
        File f2=new File("./zzz");
        f.renameTo(f2);//把aaa的名字改成zzz
    }
}
